package com.crane.oss.sys.bean.request.menu;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @author bealon
 * @email ccsu123456@qq.com
 * @date 2018年12月28日 19时42分58秒
 */
@Getter
@Setter
@ToString
@ApiModel(description = "新增参数")
public class AddMenuRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "父菜单ID", name = "parentId")
    @NotNull(message = "parentId不能为空")
    private Long parentId;

    @ApiModelProperty(value = "菜单名称", name = "name")
    @NotNull(message = "name不能为空")
    @Size(max = 50, message = "name长度超长")
    private String name;

    @ApiModelProperty(value = "菜单URL", name = "url")
    @Size(max = 200, message = "url长度超长")
    private String url;

    @ApiModelProperty(value = "类型   0：目录   1：菜单   ", name = "type")
    @NotNull(message = "type不能为空")
    private Integer type;

    @ApiModelProperty(value = "菜单图标", name = "icon")
    @Size(max = 100, message = "icon长度超长")
    private String icon;

    @ApiModelProperty(value = "排序", name = "orderNum")
    @NotNull(message = "orderNum不能为空")
    private Integer orderNum;

    @ApiModelProperty(value = "0 禁用 1 启用", name = "status")
    private Integer status;

    /**
     * vue 路由选项
     */
    @ApiModelProperty(value = "vue组件名称", name = "component")
    private String component;

    @ApiModelProperty(value = "vue重新向", name = "redirect")
    private String redirect;

    @ApiModelProperty(value = "vue标题", name = "title")
    private String title;

    @ApiModelProperty(value = "是否显示", name = "hidden")
    private Boolean hidden;
    /**
     * api列表
     */
    @ApiModelProperty(value = "绑定接口id列表，可不传", name = "apiIdList")
    private List<Long> apiIdList;

}
